﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PTools.SharePointEntity.Exceptions
{
    /// <summary>
    /// This is the base class for all SharePointEntity Exceptions
    /// </summary>
    public class SharePointEntityException: ApplicationException
    {
        /// <summary>
        /// Default empty constructor
        /// </summary>
        public SharePointEntityException()
            : base()
        {
        }

        /// <summary>
        /// Default constructor with message
        /// </summary>
        /// <param name="message">The message of the error</param>
        public SharePointEntityException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Default constructor with message and innerException
        /// </summary>
        /// <param name="message">The message of the error</param>
        /// <param name="innerException">The inner exceptions</param>
        public SharePointEntityException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
